package com.kaifamiao.io.d0921;

import java.io.*;

public class FileInputStreamDemo {

    public static void main(String[] args) {
        // 创建对象
        String path = "D:\\io\\a.txt";
        File file = new File(path);
        try (FileInputStream fileInputStream = new FileInputStream(path);
             FileInputStream fileInputStream1 = new FileInputStream(file)) {
            System.out.println(fileInputStream);
            System.out.println(fileInputStream1);

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
//        new FileInputStream();
    }
}
